@import "~antd/es/style/themes/default.less";
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    min-width: 160px;
  }
}
.layout-content {
  .ant-layout-header {
    color: #fff;
    background: linear-gradient(
      30deg,
      #006bff,
      #006eff 100%,
      #1fadff 100%
    ) !important;
    box-shadow: 0px 3px 6px 0px rgba(21, 110, 255, 0.3) !important;
    position: fixed;
    width: 87%;
    z-index: 9;
  }
  .ant-layout-content{
    margin-top: 64px !important;
  }
  .equipment-content{
    margin-top: 0px !important;
  }
}

.right {
  // width: 560px;
  display: flex;
  float: right;
  right: 30px;
  position: absolute;
  top: 0;
  height: @layout-header-height;
  margin-left: auto;
  overflow: hidden;
  .action {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    > span {
      color: @text-color;
      color: #fff;
      vertical-align: middle;
    }
    &:hover {
      background: @pro-header-hover-bg;
    }
    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: ~"calc((@{layout-header-height} - 24px) / 2)" 0;
      margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
    }
  }
}

.dark {
  .action {
    color: rgba(255, 255, 255, 0.85);
    > span {
      color: rgba(255, 255, 255, 0.85);
    }
    &:hover,
    &:global(.opened) {
      background: @primary-color;
    }
  }
}

:global(.ant-pro-global-header) {
  .dark {
    .action {
      color: @text-color;
      > span {
        color: @text-color;
      }
      &:hover {
        color: rgba(255, 255, 255, 0.85);
        > span {
          color: rgba(255, 255, 255, 0.85);
        }
      }
    }
  }
}

@media only screen and (max-width: @screen-md) {
  :global(.ant-divider-vertical) {
    vertical-align: unset;
  }
  .name {
    display: none;
  }
  .right {
    position: absolute;
    top: 0;
    right: 12px;
    .account {
      .avatar {
        margin-right: 0;
      }
    }
    .search {
      display: none;
    }
  }
}
.ant-layout-sider-children {
  padding-top: 97px;
  color: #000;
  background-color: #fff;
  .ant-pro-sider-menu-logo {
    background: linear-gradient(30deg, #0053ff, #006eff 100%, #1fadff 100%);
    box-shadow: 0px 3px 6px 0px rgba(21, 110, 255, 0.3);
    margin-bottom: 33px;
    z-index: 8;
    h1 {
      font-family: PingFang SC, PingFang SC-Semibold;
    }
  }
  .ant-menu.ant-menu-dark,
  .ant-menu-dark .ant-menu-sub,
  .ant-menu.ant-menu-dark .ant-menu-sub {
    color: #000;
    background-color: #fff;
  }
  .ant-menu-dark .ant-menu-item:hover,
  .ant-menu-dark .ant-menu-item-active,
  .ant-menu-dark .ant-menu-submenu-active,
  .ant-menu-dark .ant-menu-submenu-open,
  .ant-menu-dark .ant-menu-submenu-selected,
  .ant-menu-dark .ant-menu-submenu-title:hover {
    font-family: PingFang SC, PingFang SC-Medium;
    font-weight: 500;
    text-align: left;
    color: #ffffff !important;
    background: #005aff !important;
  }
  .ant-menu-item {
    color: #000 !important;
  }
  .ant-menu-dark .ant-menu-inline.ant-menu-sub {
    background-color: #f5f8ff;
  }
   .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal)
    .ant-menu-item-selected {
    background: #e5edff !important;
    font-family: PingFang SC, PingFang SC-Medium;
    font-weight: 500;
    text-align: left;
    color: #0059ff !important;
  }
  .ant-menu-dark .ant-menu-submenu .ant-menu-item-active:hover {
    color: #0059ff !important;
    background: #e5edff !important;
  }
  
}
.ant-layout .ant-layout-sider .ant-layout-sider-children .ant-menu>.MenuName{
  font-family: PingFang SC, PingFang SC-Medium;
  font-weight: 500;
  text-align: left;
  color: #ffffff !important;
  background: #005aff !important;
}